package com.impzx.restaurant.rest;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import com.impzx.restaurant.rest.service.DemoService;


public class EasyRestApplication extends Application {

	HashSet<Object> singletons = new HashSet<Object>();
	
	public EasyRestApplication() {
//		this.singletons.add(new Library());
//		this.singletons.add(new Shop());
//		this.singletons.add(new SimpleGetDemo());
		this.singletons.add(new DemoService());
	}

	@Override
	public Set<Class<?>> getClasses() {
		HashSet<Class<?>> set = new HashSet<Class<?>>();
		set.add(Library.class);
		return set;
	}

	@Override
	public Set<Object> getSingletons() {
		return this.singletons;
	}
	
	
}
